package com.mes.entity.cb;

import java.io.Serializable;
import java.util.Objects;

/**
 * @ClassName: WarehRerdMx
 * @Description: 入库记录
 * @Author cb
 * @Date 2018年4月10日15:40:43
 * @version 1.0
 */
public class WarehRerdMx implements Serializable{

    /**
     * id
     */
    private  long rmId;

    /**
     * 物料id
     */
    private  long maId;

    /**
     * 入库id
     */
    private  long rwId;

    /**
     * 预留
     */
    private  String mad;

    /**
     * 条码
     */
    private String code;

    /**
     * 到货单
     */
    private String arrNum;

    /**
     * 批号
     */
    private String pihao;

    /**
     * 数量
     */
    private long num;

    private String suppliername;

    private String materialModel;

    private String name;

    private String color;

    private String company;

    private long userId;

    /**
     * 入库时间
     */
    private Data dataTimes = new Data();


    /**
     * 包装规格
     */
    private String remark1;

    /**
     * 车种
     */
    private String remark2;

    /**
     * 单价
     */
    private String remark3;

    /**
     * 安全库存
     */
    private String remark4;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public Data getDataTimes() {
        return dataTimes;
    }

    public void setDataTimes(Data dataTimes) {
        this.dataTimes = dataTimes;
    }

    public String getPihao() {
        return pihao;
    }

    public void setPihao(String pihao) {
        this.pihao = pihao;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public String getSuppliername() {
        return suppliername;
    }

    public void setSuppliername(String suppliername) {
        this.suppliername = suppliername;
    }

    public String getMaterialModel() {
        return materialModel;
    }

    public void setMaterialModel(String materialModel) {
        this.materialModel = materialModel;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getRemark1() {
        return remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    public String getRemark2() {
        return remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    public String getRemark3() {
        return remark3;
    }

    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }

    public String getRemark4() {
        return remark4;
    }

    public void setRemark4(String remark4) {
        this.remark4 = remark4;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getArrNum() {
        return arrNum;
    }

    public void setArrNum(String arrNum) {
        this.arrNum = arrNum;
    }

    public long getRmId() {
        return rmId;
    }

    public void setRmId(long rmId) {
        this.rmId = rmId;
    }

    public long getMaId() {
        return maId;
    }

    public void setMaId(long maId) {
        this.maId = maId;
    }

    public long getRwId() {
        return rwId;
    }

    public void setRwId(long rwId) {
        this.rwId = rwId;
    }

    public String getMad() {
        return mad;
    }

    public void setMad(String mad) {
        this.mad = mad;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof WarehRerdMx)) return false;
        WarehRerdMx that = (WarehRerdMx) o;
        return getRmId() == that.getRmId() &&
                getMaId() == that.getMaId() &&
                getRwId() == that.getRwId() &&
                Objects.equals(getMad(), that.getMad()) &&
                Objects.equals(getCode(), that.getCode()) &&
                Objects.equals(getArrNum(), that.getArrNum());
    }

    @Override
    public int hashCode() {

        return Objects.hash(getRmId(), getMaId(), getRwId(), getMad(), getCode(), getArrNum());
    }
}
